<?php
// Acceso restringido
defined('JL') or die('Acceso restringido');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->pageLanguaje; ?>" lang="<?php echo $this->pageLanguaje; ?>">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->pageCharset; ?>" />
        <meta name="robots" content="no index, no follow" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta name="language" content="<?php echo $this->pageLanguaje; ?>" />
        <meta content="JLQ" name="JLQ" />
        <title><?php echo $this->pageTitle; ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo $this->pathTemplate; ?>/css/theme.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $this->pathTemplate; ?>/css/style.css" />
        <link rel="shortcut icon" href="<?php echo $this->pathTemplate; ?>/img/favicon.ico" type="image/x-icon" />
        <script type="text/javascript">
            var _intUserT  	= <?php
echo $_SESSION['_int_id_typeuser'];
if ($_SESSION['_int_id_typeuser'] == 1) {
    if (isset($_GET['id'])) {
        $n = intval($_GET['id']) + 2;
        $_SESSION['_int_id_sections_view'] = $_GET['id'];
    } else {
        $_SESSION['_int_id_sections_view'] = 1;
        $n = 3;
    }
} else {
    $n = 0;
}
?>;
var _sectSel = <?php echo $n; ?>,_intUserSV = <?php echo $_SESSION['_int_id_sections_view']; ?>,_intUserS = <?php echo $_SESSION['_int_id_section']; ?>,_intUserI = <?php echo $_SESSION['_int_id_user']; ?>;</script>
        <style type="text/css">
            .lbn-logout { float:right; width:300px; text-align:right; position:absolute; margin-top:-15px; *margin-top:-25px; margin-left:650px; *margin-left:-320px; }

            a.lbn-logout-link { background:url(<?php echo $this->pathTemplate; ?>/img/logout.png) no-repeat; padding-left:20px; color:#FFF !important; text-decoration:none; }
            a.lbn-csme-link { background:url(<?php echo $this->pathTemplate; ?>/img/icons/house.png) no-repeat; padding-left:20px; color:#FFF !important; text-decoration:none; margin-right:20px;}
            a:hover.lbn-csme-link, a:hover.lbn-logout-link{ text-decoration:underline !important; }

            label.error {font-size:10px;width: auto;display:block; color:#C00; font-family:Arial, Helvetica, sans-serif;}
        </style>

        <style type="text/css">
            input.clsbutton { width:110px; background:#f0f0f0; color:#000; border:solid #999 1px; font-weight:bold; padding:7px !important; margin:5px 0px 0px 0px !important; }

            input { outline:none !important; }

            #accordion{ width:185px; float:left; font-size:10px; height:300px; margin-top:5px; }
            #acordion-data{ width:746px; background:#fff; float:left; margin-top:7px; margin-left:7px; }

            #selectable{ list-style-type: none; margin: 0px; padding: 0px; width: 100%; }
            #selectable li{background:url(<?php echo $this->pathBase; ?>/Resouces/js/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png)  50% 50% repeat-x; margin: 3px; }
            #selectable li a{ display:block; padding:5px 5px 5px 10px; font-size: 11px; color:#227BBD; font-weight:bold; }
            #selectable .select{ background:url(../images/icon-arrow.png) no-repeat #fff; background-position:7px 9px;}
            #selectable .select a{ padding-left:20px; color:#e97000; }

            .ui-jqgrid select{ height:22px !important; }
        </style>

        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->pathBase; ?>/Resouces/js/themes/redmond/jquery-ui-1.7.1.custom.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->pathBase; ?>/Resouces/js/jqgrid/ui.jqgrid.css" />
        <script src="../js/lib/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
        <script>!window.jQuery.ui && document.write(unescape('%3Cscript src="<?php echo $this->pathBase; ?>/Resouces/js/jquery-ui-1.8.16.min.js"%3E%3C/script%3E'))</script>
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->pathBase; ?>/Resouces/js/jquery.simplemodal.css" />
        <script src="<?php echo $this->pathBase; ?>/Resouces/js/jquery.simplemodal-1.3.3.js"></script>
        <!--<script src="<?php echo $this->pathBase; ?>/Resouces/js/jquery.layout.js" type="text/javascript"></script>-->
        
        <script src="<?php echo $this->pathBase; ?>/Resouces/js/jl.global.js" type="text/javascript"></script>
        <script src="<?php echo $this->pathBase; ?>/Resouces/js/jqgrid/grid.locale-fr.js" type="text/javascript"></script>
        <script src="<?php echo $this->pathBase; ?>/Resouces/js/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>
        <script src="<?php echo $this->pathBase; ?>/Resouces/js/jquery.validate.js" type="text/javascript"></script> 
        <?php $this->headPage(); ?>
    </head>

    <body>
        <div id="container">
            <div id="header">
                <h2>Système d'Actualisation CSME<?php echo $texttitle; ?></h2>
                <div id="topmenu">
                    <ul>
                        <li <?php echo $classcurrent; ?>><a href="<?php echo $this->pathBase; ?>/" title="Tableau de Bord" target="_parent">Tableau de Bord</a></li>
                        <li <?php echo $classcurrent2; ?>><a href="?ws=User" title="Utilisateurs" target="_parent">Utilisateurs</a></li>
                        <?php
                        $_type = $_SESSION['_int_id_typeuser'];
                        if ($_type == 1) {
                            ?>                    
                            <li <?php echo $classcurrent4; ?>><a href="?ws=Presentation" title="Pr&eacute;sentation">Pr&eacute;sentation</a></li>
                        <?php } ?>

                        <li <?php echo $classcurrent3; ?>><a href="?ws=Sections" title="Les Sections">Les sections</a></li>
                        <li <?php echo $classcurrent1; ?>><a href="?ws=Actualites" title="Actualites">Actualit&eacute;s</a></li>
                        <?php
                        if ($_type == 1) {
                            ?>
                            <li <?php echo $classcurrent6; ?>><a href="?ws=Administration" title="Administration">Administration</a></li>
                            <li <?php echo $classcurrent5; ?>><a href="?ws=ContactsCSME" title="Contacts">Contacts</a></li>
                            <li <?php echo $classcurrent7; ?>><a href="?ws=Newsletter" title="Newsletter">Newsletter</a></li>
                            <li <?php echo $classcurrent8; ?>><a href="?ws=Partenaires" title="Partenaires">Partenaires</a></li>
                            <li <?php echo $classcurrent9; ?>><a href="?ws=Annonces" title="Annonces">Annonces</a></li>
                        <?php } ?>
                    </ul>
                </div>

                <div class="lbn-logout">
                    <a title="Web page CSME" class="lbn-csme-link" href="../" target="_blank">Web page CSME</a> 
                    <a title="Déconnexion" class="lbn-logout-link" href="?act=logout">Déconnexion</a>
                </div>   

            </div>
            <div id="top-panel">
                <div id="panel">
                    <div class="user" style="font-size:13px; font-weight:bold; float:left;"><em>Identifiant: <strong style="color:#06C;"><?php echo $_SESSION['_var_fullname']; ?> </strong><sup style="color:#06C; font-weight:bold;">[<?php echo $_SESSION['_var_desc_typeuser']; ?>]</sup></em></div>
                    </strong>
                    <ul style="text-align:right;">
                        <li style="padding-right:10px; color:#06C; font-weight:bold;">
                            <img src="<?php echo $this->pathTemplate; ?>/img/icons/folder_table.png" align="absmiddle" /> <?php echo $_SESSION['_var_desc_section']; ?></li>

                    </ul>
                    <br />
                </div>
            </div>
            <div id="wrapper">
                <div id="content" class="widthall">
                    <!-- CONTENT-->
                    <?php $this->bodyPage(); ?>            
                    <!-- END CONTENT-->
                </div>

            </div>
            <div id="footer" style="background:#FFF; height:15px; font-size:11px; text-align:center;">

                Développé par <a style="color:#06C" href="http://www.lbnstudio.fr" target="_blank">LBN STD</a> - <a style="color:#06C" href="mailto:bonjour@lbnstudio.fr">bonjour@lbnstudio.fr</a> - version du système 1.1 - © Copyright 2012. Club Sportif Multisections d’Epinay-sur-Seine. Tous droits réservés -  <a style="color:#06C" href="mailto:info@csme.fr">info@csme.fr</a>

            </div>
        </div>

    </body>
</html>